package com.example.service;

import com.alibaba.fastjson.JSONObject;
import com.example.pojo.NewPhoto;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;


public interface NewPhotoService {
    Object findAllPhoto(JSONObject json);

    //Object uploadPath(String url,String type);

    Object addNewPhoto(String url, String type);

    String uploadPath(String newPhotoPath);

    Object transform(MultipartFile upload) throws IOException;
    /**
     * 上传单张图片
     */
    void uploadPhoto(Map<String, Object> photo);

    /**
     * 删除单张照片
     */
    void deletePhoto(Map<String, Object> photo);
}
